package com.social.service.workexPerience.impl;

import com.social.entity.WorkexPerience;
import com.social.mapper.WorkexPerienceMapper;
import com.social.service.workexPerience.WorkexPerienceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service(value = "workexPerienceService")
public class WorkexPerienceServiceImpl implements WorkexPerienceService {

    @Autowired
    private WorkexPerienceMapper workexPerienceMapper;


    @Override
    public int addWorkexPerience(WorkexPerience workexPerience) {
        return workexPerienceMapper.insertSelective(workexPerience);
    }

    public List<WorkexPerience> selectByHouseKeeperId(String id) {
        return workexPerienceMapper.selectByHouseKeeperId(id);
    }

    @Override
    public int deleteByHouseKeeperId(String houseKeeperId) {
        return workexPerienceMapper.deleteByHouseKeeperId(houseKeeperId);
    }
}
